<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/menuAplicacionEmpleado.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateTblcentrocostoTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:form>
                <p:panel id="panel" styleClass="panelCabeza" header="#{bundle.CreateTblcentrocostoTitle}">
                    <p:messages id="msgs"/> 
                    <h:panelGrid columns="2">
                        <h:outputLabel value="#{bundle.CreateTblcentrocostoLabel_codCentrocosto}" for="codCentrocosto" />
                        <p:inputText id="codCentrocosto" value="#{tblcentrocostoController.selected.codCentrocosto}" title="#{bundle.CreateTblcentrocostoTitle_codCentrocosto}" required="true" requiredMessage="#{bundle.CreateTblcentrocostoRequiredMessage_codCentrocosto}"/>
                        <h:outputLabel value="#{bundle.CreateTblcentrocostoLabel_nomCentrocosto}" for="nomCentrocosto" />
                        <p:inputText id="nomCentrocosto" value="#{tblcentrocostoController.selected.nomCentrocosto}" title="#{bundle.CreateTblcentrocostoTitle_nomCentrocosto}" required="true" requiredMessage="#{bundle.CreateTblcentrocostoRequiredMessage_nomCentrocosto}"/>
                        <h:outputLabel value="#{bundle.CreateTblcentrocostoLabel_codCia}" for="codCia" />
                        <p:inputText id="codCia" value="#{tblcentrocostoController.selected.codCia}" title="#{bundle.CreateTblcentrocostoTitle_codCia}" required="true" requiredMessage="#{bundle.CreateTblcentrocostoRequiredMessage_codCia}"/>
                        
                      
                    </h:panelGrid>

                    <p:commandButton action="#{tblcentrocostoController.create}" value="#{bundle.CreateTblcentrocostoSaveLink}" />

                    <p:commandButton action="#{tblcentrocostoController.prepareList}" value="#{bundle.CreateTblcentrocostoShowAllLink}" immediate="true"/>
                </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
